<template>
  <el-container class="layout">
    <el-aside width="auto" class="aside">
      <sy-menu-bar></sy-menu-bar>
    </el-aside>
    <el-container>
      <el-header height="50px" class="header">
        <sy-header></sy-header>
      </el-header>
      <el-main class="main">
        <router-view></router-view>  <!-- 在 router 的路由规则配置中，有 7 个页面会“轮流”使用这个区域。-->
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import SyMenuBar from '@/components/layout/menu/SyMenuBar.vue'
import SyHeader from '@/components/layout/header/SyHeader.vue'
</script>

<style lang="scss">
.layout {
  height: 100%;

  .aside {
    // background-color: blueviolet;
    background-color: #304156;
  }

  .header {
    background-color: #009688;
  }

  .main {
    background-color: darkgoldenrod;
  }
}
</style>

